export type GetJobParams = {
  city: number
  pageSize: number
  page: number
  query: string
  scene?: number
  experience?: string
  payType?: string
  partTime?: string
  degree?: string
  industry?: string
  scale?: string
  stage?: string
  position?: string
  jobType?: string
  salary?: string
  multiBusinessDistrict?: string
  multiSubway?: string
}

export type ZhipinHeaders = {
  Cookie: string
}

export type ResData<T> = {
  code: number
  message: string
  zpData: T
}

export type JobListRes<T> = {
  hasMore: boolean
  jobList: T
  resCount: number
  totalCount: number
}

export type JobInfo = {
  areaDistrict: string
  bossAvatar: string
  bossCert: number
  bossName: string
  bossOnline: boolean
  bossTitle: string
  brandIndustry: string
  brandLogo: string
  brandName: string
  brandStageName: string
  businessDistrict: string
  city: number
  cityName: string
  industry: number
  jobDegree: string
  jobExperience: string
  jobName: string
  jobType: number
  lastModifyTime: number
  salaryDesc: string
  securityId: string
  encryptBossId: string
  encryptBrandId: string
  encryptJobId: string
  lid: string
  jobLabels: string[]
}

export type GetJobListRes = ResData<JobListRes<JobInfo[]>>